import request from './request'
export const navMenuList = (params) => request('post', '/web/category/queryList', params) // 头部菜单
export const getBannerList = (params) => request('post', '/web/banner/queryList', params) // banner
export const getProductList = (params) => request('post', '/web/product/queryList', params) // 获取栏目列表
export const getArticleList = (params) => request('post', '/web/article/queryList', params) // 获取资讯列表
export const getSystemList = (params) => request('post', '/web/operation/queryList', params) //获取系统列表
export const getCategoryList = (params) => request('post', '/web/subCategory/queryList', params) // 获取副柜列表
export const productDetail = (params) => request('get', '/web/product/get/' + params)// 获取商品详情
export const login = (params) => request('post', '/web/auth/login', params) // 登录
export const sendLoginCode = (params) => request('post', '/web/auth/sendLoginSms', params) //发送登录验证码
export const reigister = (params) => request('post', '/web/auth/register', params) // 注册
export const sendCode = (params) => request('post', '/web/auth/sendSms', params) //发送注册验证码
export const forgetPwd = (params) => request('post', '/web/auth/forgetPwd', params) // 忘记密码
export const sendForgetCode = (params) => request('post', '/web/auth/sendForgetSms', params) // 忘记密码发送验证码
export const getCatList = (params) => request('post', '/web/cart/queryPage', params) // 获取购物车
export const catList = (params) =>request('post','/web/cart/queryPageBuy',params) //获取单个购物车列表
export const saveCat = (params) => request('post', '/web/cart/save', params) // 加入购物车
export const customizeSave = (params) => request('post', '/web/customize/save', params) // 保存我要定制
export const delCart = (params) => request('delete', '/web/cart/delete/' + params) // 删除购物车
export const saveOrder = (params) => request('post', '/web/order/save', params) //下单
export const orderPayment = (params) => request('post', '/web/order/update', params) //支付
export const cartComfirm = (params) => request('post', '/web/cart/queryList', params) // 产品确认
export const orderDetail = (params) => request('get', '/web/order/get/' + params)
export const orderList = (params) => request('post', '/web/order/queryPage', params) // 订单列表
export const getOrderDetail = (params) => request('get', '/web/order/get/' + params) // 订单详情
export const getCategory = (params) => request('get', '/web/category/get/' + params) // 主柜信息